home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / graphics / fpwin.zip / FP.DOC < prev    next >
Text File  |  1990-12-08  |  40KB  |  1,137 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.                 Fractal Paint User's Manual
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.                   Copyright (c) 1989-1990
  15.                 International ComputerSmiths
  16.                      3726 West Broadway
  17.               Vancouver, B.C., Canada, V6R 2C1
  18.                     Tel:  (604) 224-5242
  19.                     BBS:  (604) 224-5247
  20.  
  21.  
  22.  
  23.  
  24.                         TABLE OF CONTENTS
  25.  
  26.  
  27. 1. Introduction to Fractal Paint...........................1
  28.     1.1 Installation.......................................1
  29.     1.2 Introduction to Fractals...........................2
  30. 2. The Menus...............................................3
  31.     2.1 The File Menu......................................3
  32.     2.2 The Edit Menu......................................4
  33.     2.3 The View Menu......................................5
  34.     2.4 The Program Menu...................................6
  35.     2.5 The Draw Menu......................................7
  36.     2.6 The Tools Menu....................................11
  37.     2.7 The Options Menu..................................11
  38.     2.8 Help..............................................12
  39. 3. Fractal Programming Language...........................12
  40. 4. A Tutorial.............................................14
  41. 4.1 Basic Drawing.........................................14
  42. 4.2 Defining and Drawing Fractals.........................15
  43. 5. A Guide to the Enclosed Samples........................16
  44. 6. Support for Fractal Paint..............................16
  45. Appendix A Updating WIN.INI...............................17
  46. Fractal Paint Registration Card...........................18
  47.  
  48.  
  49. 1. Introduction to Fractal Paint
  50.  
  51.      Fractal Paint is an interactive graphics design
  52. program.  Fractal Paint can draw lines, rectangles, ellipses
  53. and text like any other drawing program.  However, Fractal
  54. Paint also lets you draw more complex images called
  55. fractals.  Before Fractal Paint, fractals were drawn out
  56. laboriously on computer screens often taking overnight to
  57. calculate.  With Fractal Paint you can create fractal shapes
  58. instantly.
  59.  
  60. - Fractal  Paint is  a tool  for artists  and scientists  to
  61.   create complex landscapes quickly.
  62.  
  63. - Fractal  Paint eliminates the tedium of computer graphics,
  64.   allowing different  levels  of  self  replication  without
  65.   manually drawing in every line.
  66.  
  67. - Fractal  Paint allows  users to  create their  own  unique
  68.   fractals.
  69.  
  70. - Fractal Paint can inspire designers of all mediums.
  71.  
  72. - Fractal  Paint is  an ideal program for producing business
  73.   cards, advertisements  and other  copy that  benefits from
  74.   eye-catching graphics.
  75.  
  76.     Fractal Paint  runs under Microsoft Windows (Version 3.0
  77. or higher)  on any  computer with  a mouse that will run MS-
  78. Windows.    Fractal  Paint  objects  can  be  exported  into
  79. Microsoft Paint as well as many other Windows-based programs
  80. through the Windows Clipboard.
  81.  
  82.     To  run   Fractal  Paint,   Microsoft  Windows  must  be
  83. installed on  your hard drive.  To install Microsoft Windows
  84. refer to  the Microsoft  Windows manual.  If you do not have
  85. Microsoft Windows,  then contact  a local  Computer Software
  86. Dealer and  purchase it.  Make sure you purchase version 3.0
  87. or higher.   If  you own  a lesser version of Windows, it is
  88. well worth your while to upgrade.
  89.  
  90.  
  91. 1.1 Installation of Fractal Paint
  92.  
  93.     To install Fractal Paint copy the files from the Program
  94. Floppy Disk to a directory on your computer's hard drive.
  95.  
  96.     For instance,  to install  Fractal Paint on the C: Drive
  97. in its  own directory  C:\FP: and to create the subdirectory
  98. type:
  99.  
  100.     C:                        - select C: drive.
  101.  
  102.     cd \                      - start at the root directory.
  103.                                Fractal Paint User's Manual/2
  104.  
  105.  
  106.     mkdir FP                  - create the FP subdirectory.
  107.  
  108.                                Fractal Paint User's Manual/3
  109.  
  110.  
  111.     Now you must copy the program files to this directory so
  112. type (this  assumes you  have just  typed what  is above and
  113. that the program floppy is in drive A:):
  114.  
  115.     cd FP                     - enter the FP subdirectory
  116.  
  117.     copy a:*.*                - copy all the files over.
  118.  
  119.     Now the  easiest way  to run Fractal Paint is to install
  120. its icon  in a  program group  in the  Program  Manager  and
  121. double click  on that  icon.  First start Microsoft Windows,
  122. and  when   in  the   Program  Manager  select  the  Windows
  123. Applications program  group as  the current  window.    Then
  124. choose File  - New  and select  program item,  then for  the
  125. program path choose C:\fp\fp.exe and choose the icon.  Refer
  126. to your  MS-Windows  manual  for  more  information  on  the
  127. Program Manager.
  128.  
  129.  
  130. 1.2 Introduction to Fractals
  131.  
  132. What is a Fractal?
  133.  
  134.  "A fractal is a curve whose Hausdorff-Besicovitch dimension
  135.      is larger than its Euclidian dimension."  Dr. Benoit B.
  136.                                                   Mandelbrot
  137.  
  138.  
  139.     Fractals are  mathematical objects  with the property of
  140. being self-similar.   Fractals  are everywhere, they are the
  141. geometric patterns  found in  nature:   in tree branches, in
  142. contours of a coast-line, in peaks of mountains, in veins on
  143. leaves, in cumulus clouds.
  144.  
  145.     Formerly called  "monsters" and "dragons" by traditional
  146. geometricians,  fractals   are  now   an  accepted  part  of
  147. geometry.    These are objects that have a similar structure
  148. when observed  at any magnification.  For instance, when you
  149. look at  a coast-line it looks similar no matter how closely
  150. you look  at (i.e.,  from 20,000  feet you  see big bays and
  151. peninsulas and  from  close  up  you  see  little  bays  and
  152. peninsulas).
  153.  
  154.  
  155.  
  156.                                Fractal Paint User's Manual/4
  157.  
  158.  
  159.  
  160. 2. The Menus
  161.  
  162.  
  163. 2.1 The File Menu
  164.  
  165. +-----+
  166. |File |
  167. +-----+-----+
  168. |New        |
  169. |Open...    |
  170. |Save       |
  171. |Save As... |
  172. +-----------+
  173. |Print...   |
  174. +-----------+
  175. |Exit       |
  176. +-----------+
  177.  
  178.  
  179.     The file menu is used to clear the current drawing, load
  180. a new  drawing, save the current drawing, print the drawing,
  181. or exit the program.
  182.  
  183.     New. . .
  184.  
  185.     Selecting  New   clears  the  current  drawing  and  all
  186. associated fractal or L-system definitions.
  187.  
  188.     Open. . .
  189.  
  190.     Selecting Open,  brings up  a dialog  box with a list of
  191. files to  choose from,  and space  to enter a different file
  192. spec or  file name.   You  can use  this dialog  box to move
  193. around directories  as well.  To choose a file select it and
  194. then press  return or  click on  OK, or  alternately  double
  195. click on the file you wish to select.
  196.  
  197.     By default  this dialog  box lists files with the ".FPL"
  198. (for Fractal Programming Language) extension.  If you want a
  199. different extension enter "*.ext" where ext is the extension
  200. you wish in the file name field and press return or click on
  201. OK.   To  traverse  directories  select  [..]  to  go  up  a
  202. directory.   Directories are  listed in  bold;  to  enter  a
  203. directory, select  it.   If you  decide you  don't  want  to
  204. choose a file click on Cancel or press the escape key.
  205.  
  206.     Save. . .
  207.  
  208.     Selecting Save  will save  your  file  with  no  further
  209. prompting if  you already  have a  file name associated with
  210. the drawing  (through Open  or Save  As).   If there  is not
  211. already a  file name  (indicated in  the title  bar  of  the
  212. program), then the Save As dialog box will be presented.
  213.  
  214.                                Fractal Paint User's Manual/5
  215.  
  216.  
  217.     Save As. . .
  218.  
  219.     Selecting Save As will bring up a dialog box that allows
  220. you to  type in  the desired  file name.  Type in the entire
  221. file name including any path information, using the standard
  222. DOS syntax  for files  and paths.   If you do not provide an
  223. extension then  a default  of ".FPL" will be used.  Click OK
  224. or press  return to  carry out  the save, or click Cancel or
  225. press escape to return to the drawing without saving.
  226.  
  227.     Print. . .
  228.  
  229.     Selecting Print  will print  the drawing to the printer.
  230. Printing can take a long time, so while the drawing is being
  231. composed for printing a dialog box is presented allowing you
  232. to cancel  the printing  process.   If you  have the spooler
  233. installed then the spooler will be given a temporary file to
  234. print.
  235.  
  236.     Exit. . .
  237.  
  238.     Selecting Exit,  terminates the  program and returns you
  239. to the MS-DOS Executive.
  240.  
  241.     If you select Open, New or Exit and the drawing has been
  242. altered without  being saved  then a  dialog box  asking you
  243. whether you  want to  save the changes or not before exiting
  244. the program will be displayed.  To Save the drawing click OK
  245. or press  return.   To exit  without saving  click on  No to
  246. return to  the drawing  without saving  or exiting  click on
  247. Cancel.
  248.  
  249.  
  250. 2.2 The Edit Menu
  251.  
  252. +-----+
  253. |Edit |
  254. +-----+------------------+
  255. |Undo         Alt+BkSp   |
  256. +------------------------+
  257. |Cut          Shift+Del  |
  258. |Copy         Ctrl+Ins   |
  259. |Paste        Shift+Ins  |
  260. |Clear        Del        |
  261. +------------------------+
  262. |Select next  F2         |
  263. |Select last  F3         |
  264. +------------------------+
  265.  
  266.     Undo. . .
  267.  
  268.     Selecting  Undo   undoes  the   last  editing  operation
  269. performed (if it can).  The Undo selection will be grayed in
  270. the menu if there is nothing to undo.
  271.  
  272.                                Fractal Paint User's Manual/6
  273.  
  274.  
  275.     Cut. . .
  276.  
  277.     Cut will  copy a  selected object  to the  clipboard and
  278. delete the  object from  the  drawing.    If  no  object  is
  279. selected then Cut will be grayed in the menu.  A object that
  280. has been cut can be pasted back into Fractal Paint or pasted
  281. into another Windows application.
  282.  
  283.     Copy. . .
  284.  
  285.     Copy will  copy  a  selected  object  to  the  clipboard
  286. without deleting  it.   If no  object has been selected then
  287. Copy will  be grayed  in the  menu.   A copied object can be
  288. pasted into  Fractal Paint  or another  Windows  application
  289. (such as Windows Paint).
  290.  
  291.     Paste. . .
  292.  
  293.     Paste will  add the  object  in  the  clipboard  to  the
  294. drawing.   If there  is nothing  in the clipboard then paste
  295. will be  grayed in  the menu.   The  data in  the  clipboard
  296. should be  a  FPL  (Fractal  Programming  Language)  program
  297. segment, such as something cut or copied from Fractal Paint;
  298. however, you  can edit your own FPL code in Notepad and copy
  299. it into Fractal Paint in this manner.
  300.  
  301.     Clear. . .
  302.  
  303.     Clear deletes  the selected object without first copying
  304. it to the clipboard (Clear in no way affects the clipboard).
  305. If no  object is  selected then  Clear will be grayed in the
  306. menu.
  307.  
  308.  
  309. 2.3 The View Menu
  310.  
  311. +-----+
  312. |View |
  313. +-----+--------+
  314. |Fit in window |
  315. |Actual size   |
  316. |2 X           |
  317. |3 X           |
  318. |4 X           |
  319. +--------------+
  320. |Page...       |
  321. +--------------+
  322.  
  323.     The View menu is used to change the magnification of the
  324. drawing on the screen and adjust the page size and margins.
  325.  
  326.     Fit in Window. . .
  327.  
  328.                                Fractal Paint User's Manual/7
  329.  
  330.  
  331.     Fit in Window will cause the entire drawing to be fitted
  332. exactly into the drawing window.
  333.  
  334.                                Fractal Paint User's Manual/8
  335.  
  336.  
  337.     Actual Size. . .
  338.  
  339.     Actual size  will cause  a  display  pixel  to  equal  a
  340. logical pixel for a maximal blowup.
  341.  
  342.     2 X, 3 X and 4 X. . .
  343.  
  344.     2 X,  3 X and 4 X will magnify the drawing two, three or
  345. four times  original size  in the  drawing window.  When the
  346. drawing is  magnified, scroll  bars are added to the drawing
  347. window, so that you can scroll around the drawing.
  348.  
  349.     Page. . .
  350.  
  351.     Page brings  up a dialog box to adjust the page size and
  352. margins.
  353.  
  354.  
  355. 2.4 The Program Menu
  356.  
  357. +--------+
  358. |Program |
  359. +--------++
  360. |Edit...  |
  361. |Print... |
  362. |Run      |
  363. +---------+
  364.  
  365.     The program  dropdown menu is used to edit, print or run
  366. the FPL program that represents the drawing.
  367.  
  368.     Edit. . .
  369.  
  370.     Edit  brings  up  an  edit  window  containing  the  FPL
  371. program.   You can  move or  size the  edit window  like any
  372. other window.   When  you are  done with the edit window you
  373. can close  it from  its system  box.  Use the scroll bars to
  374. move around  the program,  type new text, or delete old text
  375. with  backspace  (remember  Del  will  clear  the  currently
  376. selected object).
  377.  
  378.     Print. . .
  379.  
  380.     Print will  print out  the FPL program in text format on
  381. the attached  printer.   If the  Windows  print  spooler  is
  382. installed, then a temporary file will be spooled.
  383.  
  384.     Run. . .
  385.  
  386.     Run runs  the FPL program.  Use this selection to redraw
  387. the screen.   If you edit the program in the edit menu, then
  388. you must  use this  to show  the changes  you  made  in  the
  389. drawing window.
  390.  
  391.                                Fractal Paint User's Manual/9
  392.  
  393.  
  394.  
  395. 2.5 The Draw Menu
  396.  
  397. +------+
  398. |Draw  |
  399. +------+-----------------------------+
  400. |Define base shape...                |
  401. |Define L-systems...                 |
  402. +------------------------------------+
  403. |Edit text and text type...   Ctrl+T |
  404. |Line style...                Ctrl+L |
  405. |Patterns...                  Ctrl+P |
  406. +------------------------------------+
  407.  
  408.     This dropdown menu allows you to define and edit fractal
  409. definitions as  well as alter or edit text, fill patterns or
  410. line styles.
  411.  
  412.     Define Base Shape. . .
  413.  
  414.     The Define Base Shape item allows you to define the base
  415. shape of your fractal:
  416.  
  417.     The Base  Shape is what starts the fractal.  It is shown
  418. in the tool box for you to select when you draw the fractal.
  419. The Base  Shape is  what you  get if you draw the fractal at
  420. level 1  (set by  the Options  menu fractal dialog box).  At
  421. level 2 each line segment of the Base Shape is replaced with
  422. a copy  of the Base Shape.  At level 3, each line segment of
  423. the level  2 drawing is replaced by the Base Shape.  This is
  424. the fractal process.
  425.  
  426.     To define a fractal Base Shape with this dialog box, you
  427. draw the  base shape  by moving  a little  turtle around  (a
  428. pointing icon).   You move this turtle forward and backwards
  429. with the  Forward: +  and -  buttons.   You turn  the turtle
  430. using the  Turn +  and - buttons.  The turn increment can be
  431. altered from  the Options  menu in  the fractal  dialog box.
  432. Normally you draw with the pen down, however you can put the
  433. pen up  to draw  discontinuous fractals like a mainland with
  434. islands.   As you  draw the Base Shape it will appear in the
  435. drawing area on the right-hand side of the dialog box.
  436.  
  437.     When you  click on  OK (or press return) the new fractal
  438. Base Shape  will appear in the tool box allowing you to draw
  439. this fractal  at any  level in the drawing area.  A computer
  440. generated name  for this  fractal also  appears in  the tool
  441. menu.   Clicking on  Cancel or  pressing the escape key will
  442. exit the  dialog box  discarding any  drawing you  may  have
  443. done.
  444.  
  445.     Define L-systems. . .
  446.  
  447.                               Fractal Paint User's Manual/10
  448.  
  449.  
  450.     L-systems  are   a  generalization  of  the  Base  Shape
  451. definitions.   They define a fractal by a number of symbolic
  452. equations (called  production rules)  and an  axiom to  draw
  453. them.  This dialog box allows you to edit existing L-systems
  454. and create  new ones.   You  can also  evolve  L-systems  by
  455. creating a  number of child systems obtained from the parent
  456. system by random perturbation.
  457.  
  458.     To edit  an existing  L-system select it in the list box
  459. of current  L-systems and  click on  the Load button to load
  460. its production  rules, axiom, name and angle into the dialog
  461. box.   To save  an L-system make sure the Name field is what
  462. you want  (a new  name for  a new  L-system, an  old name to
  463. replace an old L-system) and click on the OK button or press
  464. Enter.   To disregard  any changes  and exit with a click on
  465. the Cancel button or press escape.
  466.  
  467.     L-systems, or  string rewriting  systems, are algorithms
  468. that produce  character strings  which  are  interpreted  as
  469. curves and  pictures.   L-systems provide  an elegant way to
  470. generate the  classic fractal  curves such  as the  von Koch
  471. snowflake, von Koch islands, Hilbert and Peano space-filling
  472. curves and branching patterns such as trees and bushes.
  473.  
  474.     Fractal Paint Turtle
  475.  
  476.     In the  course  of  the  algorithm,  a  long  string  of
  477. characters is  generated.   Fractal Paint  has a more direct
  478. and efficient  way of  rendering these curves; however, this
  479. is more  instructive.   The characters  are letters  of  the
  480. alphabet or  special characters  such as '+', '-', '[', ']',
  481. '/', etc.   Such  a string  corresponds to  a picture.   The
  482. correspondence is  established via a turtle which interprets
  483. the characters  sequentially as basic commands such as "move
  484. forward", "turn left", "turn right", etc.
  485.  
  486.     The main  ingredient of  the method is the algorithm for
  487. string generation.   A first string of only a few characters
  488. must be given.  It is called the axiom.  Then each character
  489. in the  axiom is  replaced by a string taken from a table of
  490. production rules.  This substitution procedure is repeated a
  491. prescribed number of times according to the fractal level to
  492. produce the end result.
  493.  
  494.     In order  to specify a complex curve or tree, only a few
  495. production rules  will suffice.   The  axiom along  with the
  496. production rules  may be regarded as the genes which control
  497. the "growth"  of the object.  This information is very small
  498. as compared to the complexity of the resulting picture.  The
  499. challenge  is   to  find  the  axiom  and  production  rules
  500. necessary to  produce a given object or an object with given
  501. properties.   This is  a  topic  of  current  research,  but
  502. methods do exist, such as evolution.
  503.  
  504.                               Fractal Paint User's Manual/11
  505.  
  506.  
  507.     As an  introductory example, let's consider the von Koch
  508. snowflake curve.  Consider a turtle that obeys the following
  509. commands: 'F' draw a line forward, '+' turn right by 60° and
  510. '-' turn  left by  60°.   We start  out with a straight line
  511. denoted by "F".  This is the axiom of the von Koch snowflake
  512. curve.
  513.  
  514.     In stage  1, the  line is  replaced by a line forward, a
  515. left turn,  a line, two right turns (for a total of 120°), a
  516. line, a  left turn  and  another  line.    In  the  turtle's
  517. language this  can be  written  as  the  string  "F-F++F-F".
  518. Subsequently, each  line; symbolized  by the  character 'F',
  519. again has to be replaced by the string "F-F++F-F".  Thus, in
  520. stage 2  we have  the string "F-F++F-F-F-F++F-F++F-F++F-F-F-
  521. F++F-F" and so forth.
  522.  
  523.     In summary,  we have that when proceeding from one stage
  524. to the  next we  must replace  a character 'F' by the string
  525. "F-F++F-F", while  the characters '+' and '-' are preserved.
  526. Thus, the L-system consists of the axiom "F", the production
  527. rules:   "F ->  F-F++F-F", "+  -> +", "- -> -" and angle 60.
  528. Generally if  a production  rule is not listed it is assumed
  529. to be the identity mapping such as "+ -> +".
  530.  
  531.     The turtle commands that Fractal Paint uses are:
  532.  
  533.     'F': move  forward in  the present  direction and draw a
  534. line.
  535.     'f': move  forward  in  the  present  direction  without
  536. drawing a line.
  537.     '+': turn left by the given angle.
  538.     '-': turn right by the given angle.
  539.     '|': turn back (turn by 180°).
  540.     '[': save the state of the turtle on the stack.
  541.     ']': restore the state of the turtle from the top of the
  542. stack.
  543.     '/': divide the drawing line length by 2.
  544.  
  545.     Any other symbols are ignored by the turtle in the final
  546. rendering, but  are still  important  for  constructing  the
  547. drawing path.
  548.  
  549.     Evolve
  550.  
  551.     When you  click on  the Evolve button, then a dialog box
  552. pops up which draws the current L-system, at a fractal level
  553. set by  the Evolve  Level field,  and seven child L-systems.
  554. The child  systems are derived from the parent (original) L-
  555. system by  randomly altering  its axiom, production rules or
  556. angle.
  557.  
  558.     From this  dialog box you can choose one of the child L-
  559. systems to  replace the parent, or choose the parent to stay
  560. the same.   By  choosing the  L-system that looks  most like
  561.  
  562.                               Fractal Paint User's Manual/12
  563.  
  564.  
  565. the way  you want it and iterating this process, you can use
  566. evolution or  controlled selection  to construct an L-system
  567. that has  the properties  that you desire.  You can also use
  568. this feature  to generate  variations on  a theme,  such  as
  569. drawing a forest of similar but not identical trees.
  570.  
  571.     Edit Text & Text Style. . .
  572.  
  573.     Selecting edit  text and  text style  brings up the text
  574. dialog box.   With  this dialog box you can Edit Text in the
  575. drawing window  as well as the Text Style.  You can also set
  576. the Text  Style for  future text  and enter new text for the
  577. drawing window.   If  some text  is selected when you invoke
  578. this dialog  box, then  that text  will be  displayed in the
  579. Enter text  field and  can be  edited there.   Also the Text
  580. Style characteristics  will be  displayed and  can  also  be
  581. edited.
  582.  
  583.     Text height  is the  height of  the text  in points, the
  584. text width  is the  width of  each character  in points,  if
  585. width is  0 then  the character  width will  be whatever  is
  586. appropriate for this character height.  In Character Format,
  587. weight is a number between 0 and 1000 and refers to how bold
  588. the character should be, 900 is bold and 0 is normal.
  589.  
  590.     The Font Name list box lists all available printer fonts
  591. and screen  fonts.  For the printer fonts to be correct, the
  592. correct printer  must  be  installed  by  Windows  (see  the
  593. Windows manual on how to do this).
  594.  
  595.     The Background  field determines  if each character will
  596. erase a  little square  around it, or if the background will
  597. be visible through the character.
  598.  
  599.     Color sets  the Text Color and Background Color sets the
  600. color of  the little rectangle drawn around the character in
  601. White Out  background mode.   Note that not all combinations
  602. of Color  and Background Color produce visible text.  If you
  603. have a  color monitor  then the  color will be displayed, if
  604. you have  a monochrome display then you are limited to black
  605. or white, and the same goes for the printer depending on its
  606. color capability.
  607.  
  608.     A sample  of how  the text  will look  on the  screen is
  609. presented on  the bottom of the dialog box.  Windows can not
  610. accurately display  printer fonts on the screen, but will do
  611. the best it can.
  612.  
  613.     Line Style. . .
  614.  
  615.     The line style selection brings up the line style dialog
  616. box.   This dialog  box allows you to change the line width,
  617. color and style for the selected object and for future drawn
  618.  
  619.                               Fractal Paint User's Manual/13
  620.  
  621.  
  622. objects.   You select  the color by using the scroll bars to
  623. select the composition out of red, blue and green.  A sample
  624. of the  line is  provided to  help you  choose.  Click OK or
  625. press Return  to make  the change,  or click Cancel or press
  626. escape to quit without making any changes.
  627.  
  628.     Patterns. . .
  629.  
  630.     The Patterns  item brings  up the  patterns  dialog  box
  631. This dialog  box allows  you to  change  the  pattern  of  a
  632. selected rectangle,  rounded rectangle or ellipse as well as
  633. set it  for all  future rectangles,  rounded rectangles  and
  634. ellipses.   Click OK  or press Return to make the change, or
  635. click Cancel  or press  Escape to  return without making any
  636. changes.
  637.  
  638.                               Fractal Paint User's Manual/14
  639.  
  640.  
  641.  
  642. 2.6 The Tools Menu
  643.  
  644. +-------+
  645. | Tools |
  646. +-------+-----------+
  647. | Selection         |
  648. | Text              |
  649. | Line              |
  650. | Rectangle         |
  651. | Rounded Rectangle |
  652. | Ellipse           |
  653. | F1                |
  654. | F2                |
  655. | LSYS1             |
  656. | LSYS2             |
  657. +-------------------+
  658.  
  659.     This menu  provides an  alternative to  using the  Tools
  660. box.   If you  maximize the drawing window, then the toolbox
  661. becomes inaccessible and this provides an alternative method
  662. of selecting  tools.   A check  mark  appears  next  to  the
  663. selected tool.
  664.  
  665.  
  666. 2.7 The Options Menu
  667.  
  668. +--------+
  669. |Options |
  670. +--------+----+
  671. |Show toolbox |
  672. |Rulers       |
  673. +-------------+
  674. |Fractal...   |
  675. +-------------+
  676.  
  677.     This dropdown  menu  lets  you  set  some  miscellaneous
  678. options.
  679.  
  680.     Show toolbox. . .
  681.  
  682.     Show toolbox  will recreate  the toolbox  window if  you
  683. previously closed  it from  its system menu.  If the toolbox
  684. is displayed then this menu item is grayed.
  685.  
  686.     Rulers. . .
  687.  
  688.     Rulers will  display rulers  along the top and left side
  689. of the  drawing window.   This  is  to  aid  in  positioning
  690. objects on  the page.  To remove the rulers then select this
  691. item again.
  692.  
  693.     Fractal. . .
  694.  
  695.                               Fractal Paint User's Manual/15
  696.  
  697.  
  698.     When you  select the  Fractal item from the Options drop
  699. down menu,  you can  select a  number of options that affect
  700. drawing in other parts of the program.
  701.  
  702.     The first  set of  buttons let  you select  the  fractal
  703. level that will be used when drawing any future fractals.
  704.  
  705.     The turn increment box lets you enter the turn increment
  706. that will be used when you press the '+' or '-' turn buttons
  707. in the Define Base Shape dialog box.
  708.  
  709.     The next  check box  select whether  Fractal Paint  will
  710. automatically redraw  the screen  whenever  required.    You
  711. might want  to turn off this automatic redrawing if you have
  712. a drawing  that requires  a long  time to redraw and you are
  713. doing a lot of switching between windows.
  714.  
  715.  
  716. 2.8 Help
  717.  
  718.     To get  Help click on the Help menu item or press the F1
  719. key.  Help is a separate program to Fractal Paint that comes
  720. with Microsoft  Windows.  It can be moved and sized like any
  721. other Windows  application.   To move  through the Help text
  722. use  the  scroll  bars  in  Help's  text  area.    For  more
  723. information on  the Help  program refer  to  the  MS-Windows
  724. manual.
  725.  
  726.  
  727. 3. Fractal Programming Language
  728.  
  729.  
  730.     The  image   in  the   drawing  window   is  represented
  731. internally to  Fractal Paint  as a  program in  FPL (Fractal
  732. Programming Language).   You can write your own FPL programs
  733. or  edit   existing  FPL  programs  using  the  Edit  window
  734. (obtained from  the Program  dropdown  menu),  or  by  using
  735. another text editor (and transferring the program to Fractal
  736. Paint through  the Clipboard  or as  ASCII text file usually
  737. with an ".FPL" extension).
  738.  
  739.     FPL is  a very  simple assembly-like  language with  one
  740. statement per  line  and  each  statement  consisting  of  a
  741. command (like MOVETO) and a number of arguments separated by
  742. white space (spaces and tabs).
  743.  
  744.     When you  edit drawings  using  the  Tool  Box  and  the
  745. various dialog  boxes,  you  are  in  fact  editing  an  FPL
  746. program, however  Fractal Paint  is handling all the details
  747. for you.
  748.  
  749.     If you write or edit FPL programs you should try to make
  750. them look like programs that are generated using the toolbox
  751. commands.   Each object  should have a label and coordinates
  752.  
  753.                               Fractal Paint User's Manual/16
  754.  
  755.  
  756. should be  zero extended  to five  digits.   If you don't do
  757. this then  some of the toolbox command such as move and some
  758. of  the  dialog  boxes  may  have  difficulty  editing  your
  759. program.
  760.  
  761.     Fractal Paint  uses a  logical coordinate  system, where
  762. (0,0) is  at the  lower left,  the X  axis extends  right to
  763. (10000, 0),  and the  Y axis extends up to (0, 10000).  This
  764. coordinate system is then mapped onto whatever page size you
  765. have specified with the Page Size dialog box.
  766.  
  767.     Following is  a list of all the FPL commands and a quick
  768. description of their arguments:
  769.  
  770.  
  771. FRACDEF NAME CUTFAC NUMPTS T1 P1 T2 P2 ... TNUMPTS
  772.     PNUMPTS
  773. - Define fractal NAME, with cut factor CUTFAC, number of
  774.     defining points NUMPTS, Tn turn after point n, Pn pen
  775.     pos while drawing to point n.
  776.  
  777. LSYSDEF NAME TURN_INC AXIOM NUM_PROD_RULES
  778.     INP_PROD_RULE1 OUT_PRODRULE1 ... INP_PROD_RULEn
  779.     OUT_PROD_RULEn
  780. - Defines a L0-system fractal with the given production
  781.     rules and axiom.
  782.  
  783. FRAC NAME SIZE LEVEL
  784. - Draw fractal NAME, SIZE units across, of level LEVEL.
  785.  
  786. LSYS NAME LEVEL SEG_LENGTH
  787. - Draw L0-system NAME, at level LEVEL with line segments
  788.     SEG_LENGTH long.
  789.  
  790. LINE DIST
  791. - Draw a line DIST units in the current direction.
  792.  
  793. LINETO X Y
  794. - Draw a line from the current position to (X,Y).
  795.  
  796. RECT X Y
  797. - Draw a rectangle with one corner at (X,Y) and the other at
  798.     the current position.
  799.  
  800. RNDR X Y XE YE
  801. - Draw a rounded rectangle with one corner at (X,Y) and the
  802.     other at the current position.  The width and length of
  803.     the ellipses used to round the corners are XE and YE.
  804.  
  805. ELLI X Y
  806. - Draw an ellipse enclose in the rectangle with one corner
  807.     at the current position and the opposite corner at (X,Y)
  808.  
  809.  
  810.                               Fractal Paint User's Manual/17
  811.  
  812.  
  813. MOVE DIST
  814. - Move forward DIST units in the current direction (without
  815.     drawing).
  816.  
  817. MOVETO X Y
  818. - Move the current position to coordinates (X,Y) (without
  819.     drawing).
  820.  
  821. TURN ANG
  822. - Turn ANG degrees.
  823.  
  824. TURNTO ANG
  825. - Turn to ANG degrees direction.
  826.  
  827. TEXT "String of text"
  828. - Write the text contained between the quotes starting at
  829.     the current position.
  830.  
  831. TSTYLE HEIGHT WIDTH WEIGHT ITALIC
  832.            UNDERLINE STRIKEOUT CHARSET PITCHANDFAMILY BKMODE
  833.     RED BLUE GREEN BKRED BKBLUE BKGREEN "FACENAME"
  834. - Set text style, gives all parameters that Windows can
  835.     accept when rendering text.
  836.  
  837. LSTYLE WIDTH STYLE RED BLUE GREEN
  838. - Sets the line style.
  839.  
  840. PATTERN STYLE COLOR HATCH BACK_MODE
  841. - Sets the pattern to use for filling regions.
  842.  
  843. CLEAR
  844. - Pauses and then clears the screen.
  845.  
  846.  
  847. 4. A Tutorial
  848.  
  849.  
  850.     The  following is  a  step  by  step  guide  through
  851. constructing a number of fractals, and through drawing a
  852. number of objects.
  853.  
  854. 4.1 Basic Drawing
  855.  
  856.     To draw  a line  click the mouse on   the  line  tool in
  857. the Toolbox  Window.   Position the  mouse  in  the  drawing
  858. window over  where you  want the  line to  start.  Press the
  859. left mouse  button down  and hold  it down.   Drag the mouse
  860. around,  notice   that  a  line  follows  the  mouse  around
  861. connected to the starting point.  When the line is where you
  862. want it,  release the  mouse button.   To  draw  most  other
  863. objects you follow the same procedure, you select the object
  864. you wish  to draw,  from the  Toolbox Window (or Tools menu)
  865. and then  press the  mouse button  down over the start point
  866. and release  the mouse  button over  the  end  point.    The
  867.  
  868.                               Fractal Paint User's Manual/18
  869.  
  870.  
  871. exception  to   this  rule  is  drawing text which  is
  872. explained further down.
  873.  
  874.     To alter  the way  the line looks choose Line style from
  875. the Draw  Menu.   Try altering  some of the controls in this
  876. box and  then drawing  lines to  see what  effect they have.
  877. Notice that  there is  a sample  line to  show what  you are
  878. selecting in the Line style dialog box.
  879.  
  880.     To alter  the way  rectangles and  circles look  you can
  881. alter the  line that  forms their  boundary using  the  Line
  882. style dialog  box.   Plus you  can choose  Patterns from the
  883. Draw menu  and alter the way their interiors are drawn.  Try
  884. playing with  these controls  and drawing some rectangles to
  885. get the feel for how it works.
  886.  
  887.     To draw text, choose the text tool in the Toolbox Window
  888. (a big  T).  The click the mouse in the Drawing window where
  889. you want  the text  to start.   A  vertical bar  will  start
  890. flashing at  this point.   This  is a  cursor that indicates
  891. where typed  text will  be placed  in the drawing.  Now type
  892. some text.   The  text will  probably be very small, this is
  893. because the  default view  in the  drawing window  is of  an
  894. entire page.  You can make the text bigger by selecting Edit
  895. text and text style in the Draw Menu.  You can make the text
  896. bigger by  making the  height bigger, perhaps 40.  You could
  897. also "blow up" your view of the drawing using the View menu.
  898. Try experimenting  with this.   Try  altering different text
  899. styles as  well, such  as different  fonts, colors, italics,
  900. etc.
  901.  
  902.     To delete  draw objects,  choose the selection tool from
  903. the Toolbox Window (an arrow in the upper left).  Then click
  904. on the object you wish to delete.  A dashed rectangle should
  905. appear around  the selected  object.  Then choose Clear from
  906. the Edit  menu (or  press Del).   If  you wanted  the object
  907. copied to  the Windows  clipboard so  that you  can paste it
  908. back into  Fractal Paint or into another Windows application
  909. choose Cut  instead.   (Copy  copies  it  to  the  clipboard
  910. without deleting the object.)
  911.  
  912.     To move an object, choose the move tool from the Toolbox
  913. Window (a  four headed  arrow second  from the  top  on  the
  914. left).   Then push  down the  left  mouse  button  over  the
  915. desired object,  a dashed rectangle should appear around the
  916. object, then  while holding  down the mouse button, move the
  917. mouse until  the dashed  rectangle is where you want to move
  918. the object.   Then  release the  mouse button and the object
  919. will be moved for you.
  920.  
  921.     If you  have a  number of objects stacked on top of each
  922. other and  you wish to select one that is under another one,
  923. use the  Select next and Select previous menu items from the
  924.  
  925.                               Fractal Paint User's Manual/19
  926.  
  927.  
  928. edit menu  to bring  the desired  object to  the top  of the
  929. stack so that you can select it.
  930.  
  931.  
  932. 4.2 Defining and Drawing Fractals
  933.  
  934.  
  935.     There are two basic ways to define Fractals with Fractal
  936. Paint.   The first  we'll try  is the  simplest.  We use the
  937. Define Base  Shape Dialog Box.  These Fractals are made from
  938. a base  shape, the  first level  of these fractals is simply
  939. the base  shape itself.    The  next  level  is  reached  by
  940. replacing each  line in  the current  level  with  the  base
  941. shape.   To illustrate,  first set  the  turn  increment  in
  942. Options -  Fractal from  the main  menu to 60 (degrees), and
  943. start with  a new  drawing (File  - New).   Then go into the
  944. Define Base  Shape Dialog Box from the Draw menu.  Press the
  945. + button after Forward.  The turtle should move to the right
  946. leaving a  trail.   Press Turn +, and the turtle should turn
  947. 60 degrees left, now press forward + to move the turtle, now
  948. press turn  - twice  and press  forward +  again.  Now press
  949. turn +  and finally  press forward  + again.   Now press OK.
  950. The Fractal  you  just  define  should  now  appear  in  the
  951. toolbox.  Try drawing this Fractal first at level 1 and then
  952. at level  2 and then at level 3 (set by the Fractal Level in
  953. Options -  Fractal).   You should  be able  to see  how this
  954. Fractal is  generated  from  the  level  1  base  shape  you
  955. created.   Play with the Define Base Shape Dialog Box to see
  956. what wonderful Fractals you can come up with.  One good rule
  957. of thumb  is to  always  have  the  turtle  end  up  in  the
  958. direction it  started from (i.e. all the turns sum to zero),
  959. also a turn increment of 90 degrees will often generate nice
  960. looking Fractals easily.
  961.  
  962.  
  963. 5. A Guide to the Enclosed Samples
  964.  
  965.  
  966.     The following  table outlines  what is  in each  of  the
  967. sample files  contained on  the distribution disk.  Load the
  968. file using File - Open from the main menu.
  969.  
  970.     SAMPLSYS.FPL    - Some sample L-System definitions.  Try
  971. drawing these  at different  fractal  levels  and  different
  972. sizes.
  973.  
  974. SAMPFRAC.FPL   - Some  sample Fractals  made with the Define
  975.     Base Shape  Dialog Box.   Try drawing these at different
  976.     fractal levels and different sizes.
  977.  
  978. TREE1.FPL - A Fractal Tree.
  979.  
  980. TREE2.FPL - Another Fractal Tree.
  981.  
  982.                               Fractal Paint User's Manual/20
  983.  
  984.  
  985. KOCH1.FPL - A Koch Island.
  986.  
  987. KOCH2.FPL - Some Koch Snowflakes.
  988.  
  989. DEMO.FPL  - A  demo of  many Fractals  and many  of  Fractal
  990.     Paints capabilities.  If you plan to load this, it might
  991.     be a good idea to turn off automatic redraw in Options -
  992.     Fractal from  the menu  and then  draw the program using
  993.     Program - Run from the main menu.  Notice that this demo
  994.     is entirely written in FPL itself.
  995.  
  996.  
  997. 6. Support for Fractal Paint
  998.  
  999.  
  1000.     Support for  Fractal Paint  is available  for registered
  1001. users.  Have your registration number handy for verification
  1002. when you call.  We can be reached at ComputerSmiths, between
  1003. 8:30 a.m.  to 5:00 p.m. Pacific Time at 604-224-5242, or you
  1004. can reach us at our BBS line at 604-224-5247.
  1005.  
  1006.     We would  love to  hear your  comments and find out what
  1007. our users  are doing with this new drawing program.  Call or
  1008. write please.
  1009.  
  1010.                               Fractal Paint User's Manual/21
  1011.  
  1012.  
  1013. Appendix A: Updating WIN.INI
  1014.  
  1015.  
  1016.     You can  add a line to "WIN.INI" so that when you double
  1017. click on  a file  with the  extension ".FPL",  Fractal Paint
  1018. will automatically  be run by Windows and Fractal Paint will
  1019. automatically open this file when it starts up.
  1020.  
  1021.     To do  this you must edit the file "WIN.INI" which is in
  1022. the directory  in which  you installed Windows.  First, save
  1023. the current  copy of  "WIN.INI", so  that if  something goes
  1024. wrong you  can recover.   To edit the file use some standard
  1025. text editor  such as  Notepad which comes with Windows.  All
  1026. you have  to do  is add one line to the [extensions] section
  1027. of  "WIN.INI".     Look   for   a   line   containing   only
  1028. "[extensions]" in "WIN.INI", it is then followed by a number
  1029. of lines  that look like "cal=calendar.exe ^.cal".  To these
  1030. lines add  the line  "fpl=c:\fp\fp.exe ^.fpl",  assuming you
  1031. installed Fractal  Paint on  the C:  drive in \fp, otherwise
  1032. substitute the drive and path of where you installed Fractal
  1033. Paint.
  1034.  
  1035.     Then save "WIN.INI", exit Windows and restart Windows so
  1036. that the change in "WIN.INI" can take effect.
  1037.  
  1038.                               Fractal Paint User's Manual/22
  1039.  
  1040.  
  1041.       Fractal Paint Registration Card
  1042.  
  1043.     Fractal Paint  is shareware,  so if you use this program
  1044. please send  $25.00.  Without some sort of financial support
  1045. from users,  work on  this program will not be possible.  If
  1046. you send  in the  $25.00 you  will receive a registered next
  1047. version of the program absolutely free.
  1048.  
  1049.     Please fill  out this  card, enclose a cheque for $25.00
  1050. and mail it immediately to:
  1051.  
  1052.                 Fractal Paint Registration
  1053.                 International ComputerSmiths
  1054.                 3726 West Broadway
  1055.                 Vancouver, B.C.
  1056.                 V6R 2C1
  1057.                   Canada
  1058.  
  1059.     Doing  so  entitles  you  to  additional  Fractal  Paint
  1060. product information.
  1061.  
  1062. Product: Fractal Paint  Version: 1.0  Registration Number:
  1063.  
  1064. Name:    ___________________________________________________
  1065.  
  1066. Company: ___________________________________________________
  1067.  
  1068. Title:   ___________________________________________________
  1069.  
  1070. Address: ___________________________________________________
  1071.  
  1072.          ___________________________________________________
  1073.  
  1074. City: _______________  Province/State: _____________________
  1075.  
  1076. Country: ____________  Postal/Zip Code: ____________________
  1077.  
  1078. Computer Type: AT Comp 286 [  ]  AT Comp 386 [  ]  PS/2 [  ]
  1079.  
  1080.             Other: _________________________________________
  1081.  
  1082. Index                              Tools  11
  1083.                                    TSTYLE  14
  1084. 2 X  6                             TURN  13
  1085. 3 X  6                             TURNTO  13
  1086. 4 X  6                             Turtle  8
  1087. Actual Size  6                     Tutorial  14
  1088. Basic Drawing  14                  Undo  4
  1089. Clear  5, 14                       View  5
  1090. Copy  5                            WIN.INI  16
  1091. Cut  5
  1092. Define Base Shape  7
  1093. Define L-systems  7
  1094. Draw  7
  1095. Edit  6
  1096. Edit Text & Text Style  9
  1097. ELLI  13
  1098. Evolve  9
  1099. Exit  4
  1100. Fit in Window  5
  1101. FRAC  13
  1102. FRACDEF  13
  1103. Fractal  11
  1104. Fractal Programming Language
  1105.     12
  1106. Help  12
  1107. Installation  1
  1108. LINE  13, 14
  1109. Line Style  10
  1110. LINETO  13
  1111. LSTYLE  14
  1112. LSYS  13
  1113. LSYSDEF  13
  1114. MOVE  13
  1115. MOVETO  13
  1116. New  3
  1117. Open  3
  1118. Options  11
  1119. Page  6
  1120. Paste  5
  1121. PATTERN  14
  1122. Patterns  10
  1123. Print  4, 6
  1124. Program Menu  6
  1125. RECT  13
  1126. Registration  18
  1127. RNDR  13
  1128. Rulers  11
  1129. Run  6
  1130. Samples  16
  1131. Save  3
  1132. Save As  4
  1133. Show toolbox  11
  1134. Support for Fractal Paint  16
  1135. TEXT  13, 14
  1136.  
  1137.